package com.xgq.drink.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.time.LocalDateTime;

import lombok.Data;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;

/**
 * <p>
 * 用户实体类
 * </p>
 *
 * @author XuGuiQi
 * @since 2025-02-22
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "user_id", type = IdType.AUTO)
    private Long userId; // 数据库字段是 bigint，这里改为 Long

    private String username;

    private String password;

    private String email;

    private String phone;

    private String avatarUrl;
    private String gender;

    private Byte isActive;

    private LocalDateTime createdAt;

    private LocalDateTime updatedAt;
    private Integer points;
    private String permission;
}